import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppContentRouter } from './business/app-content/app-content.router';
import { AppContentComponent } from './business/app-content/app-content.component';

const routes = [
  { path: '', redirectTo: 'develop/introduce', pathMatch: 'full' },
  { path: 'develop', component: AppContentComponent, children: AppContentRouter },
  { path: 'components', component: AppContentComponent, children: AppContentRouter },
];

@NgModule({
  imports: [RouterModule.forRoot(routes as Routes)],
  exports: [RouterModule],
})
export class AppRouterModule {}
